﻿using WAU.Models.Framework;
using WAU.Models.LogModels;
using Microsoft.EntityFrameworkCore;

namespace WAU.DAL
{
    /// <summary>
    /// 日志数据库连接
    /// </summary>
    public class EssentialLogDbContext : DbContext
    {
        /// <summary>
        /// ctor
        /// </summary>
        /// <param name="options"></param>
        public EssentialLogDbContext(DbContextOptions<EssentialLogDbContext> options)
            : base(options)
        {

        }

        /// <summary>
        /// 访问日志表
        /// </summary>
        public DbSet<LogAccess> LogAccess { get; set; }
        /// <summary>
        /// 业务错误表
        /// </summary>
        public DbSet<LogBusinessException> LogBusinessException { get; set; }
    }
}
